package cn.wetcland.urban.framework.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AddressUpdateDTO {

    @NotNull(message = "请传入地址ID")
    private Long addressId;

    @NotNull(message = "请选择省份")
    private Long addressProvinceId;

    /**
     * 市ID
     */
    @NotNull(message = "请选择城市")
    private Long addressCityId;

    /**
     * 区ID
     */
    @NotNull(message = "请选择区县")
    private Long addressDistrictId;

    @NotNull(message = "请输入经度")
    private BigDecimal longitude;

    /**
     *
     */
    @NotNull(message = "请输入纬度")
    private BigDecimal latitude;

    /**
     * 地址详细信息
     */
    @NotBlank(message = "请输入详细地址")
    private String addressDetails;

    /**
     * 手机号
     */
    @NotBlank(message = "请输入手机号")
    private String phone;

    /**
     * 姓名
     */
    @NotBlank(message = "请输入地址联系人")
    private String name;

    /**
     *
     */
    @NotNull(message = "请选择是否默认")
    private Integer isDefault;

}
